import 'package:flutter/material.dart';
import 'package:x3_base_core/base_models/base_http_request_model.dart';
import 'package:x3_form_core/components/base_form_label.dart';

class BaseRequestFormLabel extends StatelessWidget {
  BaseRequestFormLabel({Key key, @required this.request}) : super(key: key);

  final BaseHttpRequestModel request;

  @override
  Widget build(BuildContext context) {
    return BaseFormLabel(isRequired: request.required, text: request.name);
  }
}
